extends layout

block content
    h1= title
  
    form#login(method="POST")
        label Please log in:
            br 
            input(type="text", name="name")
        input(type="submit", name="login", value="Login")
        
    form#logout.hidden(method="POST")
        h2 Welcome, 
            span#name
            | !
        input(type="submit", name="logout", value="Logout")

    br
    br
    
    #agenda.hidden
        form#add(method="POST")
            h3 New appointment
            
            label Description:
                br
                input(name="subject", type="text")
            br
            br
            
            -var days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
            label Day: &nbsp;
            select(name="day")
                each day in days
                    option(value=day)= day
            
            br
            -var hours = [ "7am", "8am", "9am", "10am", "11am", "12pm", "1pm", "2pm", "3pm", "4pm", "5pm", "6pm" ]            
            label From:  &nbsp;
            select(name="start")
                each hour in hours
                    option(value=hour)= hour
            
            label &nbsp; To: &nbsp;
            select(name="end")
                each hour in hours
                    option(value=hour)= hour
            
            span  &nbsp; or &nbsp;
            label Duration:  &nbsp;
                input(name="duration", type="text", size="4")
            br
            br
            span Invitees: (Comma separated)
            br
            textarea(name="invitees")
            
            br
            br
            input(type="submit", name="add", value="Add")
        br
        br
        #calendar